package com.zack.designPattern.mediator;

public class Colleague {

	private String name;
	
	private Mediator mediator;
	
	public Colleague(String name, Mediator mediator){
		this.name = name;
		this.mediator = mediator;
		mediator.addColleague(this);
	}
	
	protected void win(){
		System.out.println(name + " wins");
	}
	
	protected void loose(){
		System.out.println(name + " looses");
	}
	
	public void winAll(){
		this.mediator.winAll(this);
	}
	
	
}
